+2006-05-31 Alexander Larsson <alexl@redhat.com>
+
+ * gtk/gtk.symbols:
+ * demos/gtk-demo/printing.c:
+ * tests/print-editor.c:
+ * tests/testnouiprint.c:
+ * tests/testprint.c:
+ * tests/testprintfileoperation.c:
+ Further updates from the GtkPrintContext functions rename.
+
+ * modules/printbackends/cups/gtkcupsutils.c:
+ Always set requesting-user-name when doing cups requests.
+
2006-05-31 Alexander Larsson <alexl@redhat.com>
* gtk/gtkpagesetupunixdialog.c:
+2006-05-31 Alexander Larsson <alexl@redhat.com>
+
+ * gtk/gtk.symbols:
+ * demos/gtk-demo/printing.c:
+ * tests/print-editor.c:
+ * tests/testnouiprint.c:
+ * tests/testprint.c:
+ * tests/testprintfileoperation.c:
+ Further updates from the GtkPrintContext functions rename.
+
+ * modules/printbackends/cups/gtkcupsutils.c:
+ Always set requesting-user-name when doing cups requests.
+
2006-05-31 Alexander Larsson <alexl@redhat.com>
* gtk/gtkpagesetupunixdialog.c:
PangoFontDescription *desc;
gchar *page_str;
- cr = gtk_print_context_get_cairo (context);
+ cr = gtk_print_context_get_cairo_context (context);
width = gtk_print_context_get_width (context);
cairo_rectangle (cr, 0, 0, width, HEADER_HEIGHT);
cairo_set_line_width (cr, 1);
cairo_stroke (cr);
- layout = gtk_print_context_create_layout (context);
+ layout = gtk_print_context_create_pango_layout (context);
desc = pango_font_description_from_string ("sans 14");
pango_layout_set_font_description (layout, desc);
g_object_unref (layout);
- layout = gtk_print_context_create_layout (context);
+ layout = gtk_print_context_create_pango_layout (context);
desc = pango_font_description_from_string ("mono");
pango_font_description_set_size (desc, data->font_size * PANGO_SCALE);
#if IN_HEADER(__GTK_PRINT_CONTEXT_H__)
#if IN_FILE(__GTK_PRINT_CONTEXT_C__)
gtk_print_context_get_type G_GNUC_CONST
-gtk_print_context_get_cairo
+gtk_print_context_get_cairo_context
gtk_print_context_get_page_setup
gtk_print_context_get_width
gtk_print_context_get_height
gtk_print_context_get_dpi_x
gtk_print_context_get_dpi_y
-gtk_print_context_get_fontmap
-gtk_print_context_create_context
-gtk_print_context_create_layout
+gtk_print_context_get_pango_fontmap
+gtk_print_context_create_pango_context
+gtk_print_context_create_pango_layout
#endif
#endif
"attributes-natural-language",
NULL, language->language);
+ gtk_cups_request_ipp_add_string (request, IPP_TAG_OPERATION, IPP_TAG_NAME,
+ "requesting-user-name",
+ NULL, cupsUser());
+
cupsLangFree (language);
return request;
width = gtk_print_context_get_width (context);
height = gtk_print_context_get_height (context);
- print_data->layout = gtk_print_context_create_layout (context);
+ print_data->layout = gtk_print_context_create_pango_layout (context);
desc = pango_font_description_from_string (print_data->font);
pango_layout_set_font_description (print_data->layout, desc);
else
end = GPOINTER_TO_INT (pagebreak->data);
- cr = gtk_print_context_get_cairo (context);
+ cr = gtk_print_context_get_cairo_context (context);
cairo_set_source_rgb (cr, 0, 0, 0);
PangoLayout *layout;
PangoFontDescription *desc;
- cr = gtk_print_context_get_cairo (context);
+ cr = gtk_print_context_get_cairo_context (context);
/* Draw a red rectangle, as wide as the paper (inside the margins) */
cairo_set_source_rgb (cr, 1.0, 0, 0);
/* Draw some text */
- layout = gtk_print_context_create_layout (context);
+ layout = gtk_print_context_create_pango_layout (context);
pango_layout_set_text (layout, "Hello World! Printing is easy", -1);
desc = pango_font_description_from_string ("sans 28");
pango_layout_set_font_description (layout, desc);
PangoLayout *layout;
PangoFontDescription *desc;
- cr = gtk_print_context_get_cairo (context);
+ cr = gtk_print_context_get_cairo_context (context);
/* Draw a red rectangle, as wide as the paper (inside the margins) */
cairo_set_source_rgb (cr, 1.0, 0, 0);
/* Draw some text */
- layout = gtk_print_context_create_layout (context);
+ layout = gtk_print_context_create_pango_layout (context);
pango_layout_set_text (layout, "Hello World! Printing is easy", -1);
desc = pango_font_description_from_string ("sans 28");
pango_layout_set_font_description (layout, desc);
PangoFontDescription *desc;
char *page_str;
- cr = gtk_print_context_get_cairo (context);
+ cr = gtk_print_context_get_cairo_context (context);
width = gtk_print_context_get_width (context);
cairo_rectangle (cr, 0, 0, width, HEADER_HEIGHT);
cairo_set_line_width (cr, 1);
cairo_stroke (cr);
- layout = gtk_print_context_create_layout (context);
+ layout = gtk_print_context_create_pango_layout (context);
desc = pango_font_description_from_string ("sans 14");
pango_layout_set_font_description (layout, desc);
g_object_unref (layout);
- layout = gtk_print_context_create_layout (context);
+ layout = gtk_print_context_create_pango_layout (context);
desc = pango_font_description_from_string ("mono");
pango_font_description_set_size (desc, op->font_size * PANGO_SCALE);